package com.example.demo1109.demo4;

public class Test {
    public static void main(String[] args) {
        Agency agency = new Agency(new Haha());
        Haha haha = (Haha) agency.getInstance();
        haha.add(5, 2);
        haha.cheng(2,5);
        haha.chu(4,2);
        haha.jian(3,2);

    }
}
